package com.onpositive.notes.argumnets;

import com.onpositive.notes.label.providers.BasicLabelProvider;
import com.onpositive.notes.model.ITemplateModel;

public class StringArgumnetModel extends BasicArgumentModel<String, StringArgument>{

	public StringArgumnetModel() {
		super();
	}

	private static final long serialVersionUID = 3538887371724029583L;

	public StringArgumnetModel(String name, boolean isRequired) {
		super(String.class, name, new BasicLabelProvider<String>(String.class), isRequired);
	}

	@Override
	public StringArgument createInstance(String value, ITemplateModel<?> templateModel) {
		StringArgument arg = new StringArgument(value, this, isRequired) ;
		arg.setTemplateModelId( templateModel.getId() ) ;
		return arg ;
	}
	
	
}
